<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Cache-Control" content="max-age=2592000" />
    <title>{:config('website_title')}</title>
    <link href="__STATIC__/favicon.ico" rel="shortcut icon">
    <link href="__STATIC__/admin/css/base.css" rel="stylesheet">
    <link href="__STATIC__/admin/css/index.css" rel="stylesheet" />
    <link href="__STATIC__/admin/css/system.css" rel="stylesheet" />
    <script type="text/javascript" src="__STATIC__/common/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="__STATIC__/common/jquery.validate.js"></script>
    <script type="text/javascript" src="__STATIC__/common/jquery.metadata.js"></script>
    <script type='text/javascript' src="__STATIC__/common/jquery.resizableColumns.js"></script>
    <script type="text/javascript" src="__STATIC__/common/plugins/layer/layer.min.js"></script>
    <script type="text/javascript" src="__STATIC__/admin/js/common.js?v=1.0"></script>
    <script type="text/javascript" src="__STATIC__/common/json2.js"></script>
    <script type="text/javascript">
        var json = JSON.parse('{$Think.config.json}');
        var upload_url = "{:url('common/file')}";
    </script>
</head>
<body>
<div class="warp tree">
    <div class="head-content">
        <!-- 页面head -->
        <div class="head">
            <div class="user-logo" style="color: #fff;font-size: 30px;width:500px;font-family:Arial,Helvetica,sans-serif;">{:config('website_title')}</div>
            <div class="user-info">
                <p>
                    欢迎[<font color="red">{:get_login_agent_role_name()}</font>]<a href="{:Url('admin/admin_info')}">{:get_login_agent_user()}</a>的到来 |
                    <!--<a href="{:Url('system/clear_cache_all')}">最新消息（<font color="red">10</font>）</a> |-->
                    <a href="{:Url('login/logout')}">退出</a>
                </p>
                <p><span>版本：1.0.0</span><span>最后登录IP：{:get_client_ip()}</span></p>
            </div>
        </div>

        <!-- 一级菜单 -->
        <div class="nav-box">
            <ul class="nav" id="_menu_one">
                {foreach name="$Think.config.menu.menu[1]" item="menu_one"}
                {if condition="($menu_one['menu_id'] == $Think.config.menu.current[1])"}
                <li class="cur"><a href="{:Url($menu_one['action'])}"><span>{$menu_one.name}</span></a></li>
                {else /}
                <li><a href="{:Url($menu_one['action'])}"><span>{$menu_one.name}</span></a></li>
                {/if}
                {/foreach}
            </ul>
        </div>

        <!-- 内容 -->
        <div class="container">
            <!-- 二级菜单 -->
            <div class="side fl mt10">
                <!-- 二级菜单 -->
                <div class="scroll-bar-box">
                    <div class="view-port">
                        <div id="overviewTreeGroup" class="overview">
                            <ul id="_menu_two">
                                {foreach name="$Think.config.menu.menu[2]" item="menu_two"}
                                {if condition="($menu_two['menu_id'] == $Think.config.menu.current[2])"}
                                <li class="cur"><a href="{:Url($menu_two['action'])}"><span>{$menu_two.name}</span></a></li>
                                {else /}
                                <li><a href="{:Url($menu_two['action'])}"><span>{$menu_two.name}</span></a></li>
                                {/if}
                                {/foreach}
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 页面主体内容 -->
            <div class="cont mt10">
                <!-- 收缩条 -->
                <div id="content_hide" style="position: relative; left:-10px; top: 285px;" ret="1">
                    <div class="effect-btn">
                        <img src="__STATIC__/admin/css/img/btn_icon02.gif" class="left">
                    </div>
                </div>

                <!-- 搜索框及工具条 -->
                <div class="crumbs-box">
                    <div class="crumbs">
                        <!-- 导航条 -->
                        <div class="fl" id="_mini_nav">
                            <a class='blue' href='{:Url($Think.config.menu["menu"][1][$Think.config.menu["current"][1]]["action"])}'>{$Think.config.menu["menu"][1][$Think.config.menu["current"][1]]["name"]}</a>&nbsp;>&nbsp;
                            <a class='blue' href='{:Url($Think.config.menu["menu"][2][$Think.config.menu["current"][2]]["action"])}'>{$Think.config.menu["menu"][2][$Think.config.menu["current"][2]]["name"]}</a>&nbsp;>&nbsp;
                            <a class='blue' href='{:Url($Think.config.menu["menu"][3][$Think.config.menu["current"][3]]["action"])}'>{$Think.config.menu["menu"][3][$Think.config.menu["current"][3]]["name"]}</a>
                        </div>

                        <!-- 返回 -->
                        <span><a class="return" href="javascript:history.go(-1);">返回上一页</a></span>
                    </div>
                </div>

                <!-- 编辑区域 -->
                <div class="lists">
                    <!-- 三级菜单 -->
                    <div class="lists-tab">
                        <strong>
                            <!-- 设置第四级菜单 -->
                            <ul id="_menu_three">
                                <!-- 设置第四级菜单 -->
                                {foreach name="$Think.config.menu.menu[3]" item="menu_three"}
                                {if condition="($menu_three['menu_id'] == $Think.config.menu.current[3])"}
                                <li class="current"><a href="{:Url($menu_three['action'])}">{$menu_three.name}</a></li>
                                {else /}
                                <li><a href="{:Url($menu_three['action'])}">{$menu_three.name}</a></li>
                                {/if}
                                {/foreach}
                            </ul>
                        </strong>
                    </div>

                    <!-- Layout加载内容-->
                    {__CONTENT__}
                </div>
            </div>
        </div>
    </div>
</div>
<div class="footer_gp">
    <p>厦门酷融信息科技有限公司版权所有 © Copyright 2014-2017 	闽ICP备18006609号-1</p>
</div>
</body>
<!-- JS处理 -->
<script language="javascript">
    $(function(){
        //修改列表宽度
        $("div.lists-table table.pointer").width("{:get_screen()}");

        //二级菜单显示异常操作
        $('#content_hide').click(function(){
            //判断二级菜单是否显示
            if($(this).attr("ret") == 1){
                $(this).attr("ret","2");
                $("div.container .side").hide();
                $("div.container .cont").css("width","98.7%");
                $(this).find("img").attr("src","__STATIC__/admin/css/img/btn_icon01.gif");
            }else{
                $(this).attr("ret","1");
                $("div.container .side").show();
                $("div.container .cont").css("width","85.6%");
                $(this).find("img").attr("src","__STATIC__/admin/css/img/btn_icon02.gif");
            }
        });

        //修改列表宽度
        $("div.lists-table table").resizableColumns(function(){});

        //数据检查
        $.metadata.setType('attr', 'validate');
        $('form').validate();

        //重写alert
        window.alert = layer.alert;
    });
</script>
</html>